package com.ganyu.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.ganyu.domain.ResponseResult;
import com.ganyu.domain.dto.AddCategoryDto;
import com.ganyu.domain.dto.UpdateCategoryDto;
import com.ganyu.domain.entity.Category;
import com.ganyu.domain.vo.CategoryVo;

/**
 * DATA: 2022/8/29
 * Author: 晨夕
 */
public interface CategoryService extends IService<Category> {

    //查询文章类别
    ResponseResult<CategoryVo> getCategory();

    //查询文章分类全部
    ResponseResult getCategoryList();

    //查询全部分类
    ResponseResult selectList(Integer pageNum, Integer pageSize, String name, String status);

    //新增分类
    ResponseResult addList(AddCategoryDto addCategoryDto);

    //根据id查询
    ResponseResult selectById(Long id);

    //修改分类
    ResponseResult updateCagegory(UpdateCategoryDto updateCategoryDto);

    //删除分类
    ResponseResult deleteCagegory(Long[] ids);
}
